package ui

import dominio.Jugador
import org.uqbar.arena.widgets.Button
import org.uqbar.arena.widgets.Panel
import org.uqbar.arena.windows.WindowOwner

class JardinAcuaticoWindow extends JardinZenWindow {

	@Property Jugador jug

	new(WindowOwner parent, Jugador jugador) {
		super(parent, jugador.jacuatico)
		taskDescription = "JardinAcuatico"
		jug = jugador
	}

	override docreateGridActions(Panel mainPanel) {
		var actionsPanel = new Panel(mainPanel)
		new Button(actionsPanel).setCaption("Jardin Terrestre").onClick[|this.jardinTerrestre; cancel]
	}

	def void jardinTerrestre() {
		this.openDialog(new JardinTerrestreWindow(this, jug))
	}

	override def createMainTemplate(Panel mainPanel) {

		super.createMainTemplate(mainPanel)
	}

}
